home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / Converse / Source / User.h < prev    next >
Text File  |  1995-12-28  |  2KB  |  49 lines

  1. //** Craig Laurent
  2. #import <eointerface/eointerface.h>
  3.  
  4. //** extra code used for encoding User, a subclass of NSObject
  5. @interface NSObject (NXTransportExtensions)
  6. - encodeRemotelyFor:(NXConnection *)connection
  7. freeAfterEncoding:(BOOL *)flagp isBycopy:(BOOL)isBycopy;
  8. @end
  9.  
  10.  
  11. /* User - an Object that maintains all information on a specific user.  This information is passed with messages to indicate who sent the message.  This information is displayed in the log along with the message.  Pertinent information is:
  12. userID    - the user's computer ID.
  13. userName    - the user's real name.
  14. userMachine    - the user's machine name.
  15. A nickname can be created which can contain all or none of these pieces of information. */
  16.  
  17. @interface User:NSObject
  18. {
  19.     NSString *userID;
  20.     NSString *userName;
  21.     NSString *userMachine;
  22. }
  23.  
  24. - init;
  25. - (void)dealloc;
  26.  
  27. //** instance methods
  28. - (NSString *)userID;
  29. - (void)setUserID:(NSString *)newID;
  30. - (NSString *)userName;
  31. - (void)setUserName:(NSString *)newName;
  32. - (NSString *)userMachine;
  33. - (void)setUserMachine:(NSString *)newMachine;
  34.  
  35. //** method types
  36. - (void)loadUser;
  37. - (NSString *)userNicknameWithID:(BOOL)ID andName:(BOOL)name andMachine:(BOOL)machine;
  38.  
  39. //** data archiving methods
  40. - (void)encodeWithCoder:(NSCoder *)aCoder;
  41. - initWithCoder:(NSCoder *)aDecoder;
  42.  
  43. //** Distributed Object methods
  44. - encodeRemotelyFor:(NXConnection *)connection freeAfterEncoding:(BOOL *)flagp isBycopy:(BOOL)isBycopy;
  45. - encodeUsing:(id <NXEncoding>)portal;
  46. - decodeUsing:(id <NXDecoding>)portal;
  47.  
  48. @end
  49.